<div class="featured-items clearfix">

    <div class="main-title clearfix">
        <p>Sản phẩm giá tốt nhất</p>
        <a href="#" class="view">Xem tất cả</a>
    </div>

    <div class="items clearfix">
        <?php foreach($products as $product):?>
        <div class="item-block-1">
            <?php if($product->getSale() !== false):?>
                <span class="tag-sale">
                    <div>-<?php echo $product->getSale()?>%</div>
                </span>
            <?php endif;?>
            <div class="image-wrapper">
                <div class="image">
                    <a href="<?php echo $product->getUrl()?>">
                        <img src="<?php echo urlImageFolder('product').$product->getImage()?>" style="margin: -32.5px 0 0 0;" alt="" />
                    </a>
                </div>
            </div>
            <h2>
                <a href="<?php echo $product->getUrl()?>"><?php echo $product->name;?></a>
            </h2>
            <p class="price"><?php echo number_format($product->getPrice(),0,0,'.') ?> VND
                <?php if($product->getOldPrice() != 0):?>
                    <s><?php echo number_format($product->getOldPrice(),0,0,'.') ?> VND</s>
                <?php endif;?>
            </p>
        </div>
        <?php endforeach;?>
        

    </div>

    <!-- END .featured-items -->
</div>